<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="_common/title.jsp" %>
<%
    if (null == session.getAttribute("user")) {
        response.sendRedirect("login.jsp");
    }
%>
<body>
    <%@include  file="_common/header.jsp" %>
    <%@include  file="_common/col-left.jsp" %>

    <div class="col-main col-xs-12 col-sm-6 col-md-9">
        <!-- InstanceBeginEditable name="main" -->
        <div class="title-main"><img class="icon-mail" src="<%=request.getContextPath()%>/_assets/images/bx_mymail.png" /> <label>Mail</label></div>
        <div class="content-main">
            <div class="subMenuMail">
                <table cellspacing="0" cellpadding="0">
                    <tbody>
                        <tr>
                            <td class="usual">
                                <div><a class="sublinks active" href="compose.jsp"><span>Compose</span></a></div>
                            </td>
                            <td class="usual">
                                <div><a class="sublinks" href="loadMailOutBox.do"><span>Outbox</span></a></div>
                            </td>
                            <td class="usual">
                                <div><a class="sublinks" href="loadMailStaff.do"><span>Inbox</span></a></div>
                            </td>
                            <td class="usual">
                                <div><a class="sublinks" href="loadMailTrash.do"><span>Trash</span></a></div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="dbContent">

                <html:form action="composeMail.do" method="post"  enctype="multipart/form-data">
                    <div class="rowManager">
                        <label class="lb">To</label>
                        <html:text property="recipient"></html:text>
                            <a href="loadEmailId.do">Add CC</a>
                        </div>
                        <div class="rowManager">
                            <label class="lb">Subject</label>
                        <html:text property="subject"></html:text>
                        </div>
                        <div class="rowManager">
                            <label class="lb">Content</label>
                        <html:textarea style="width:400px;height:200px" property="content"></html:textarea>
                        </div>
                        <div class="rowManager">
                            <label class="lb">Attachment</label>
                        <html:file property="theFile"/>
                    </div>
                    <div class="rowManager">
                        <label class="lb">&nbsp;</label>
                        <input type="submit" value="Send" />
                    </div>
                </html:form>

            </div>
        </div>
        <!-- InstanceEndEditable -->
    </div>
    <!-- ends col-main -->

    <%@include file="_common/footer.jsp" %>

</body>
</html>


